export function generateUniqueId() {
  return `${Date.now()}_${Math.random().toString(36).substring(2, 16)}`
}

export function deepClone(target) {
  if (typeof target === 'object' && target !== null) {
    const clone = Array.isArray(target) ? [] : {}
    for (const key in target) {
      if (Object.prototype.hasOwnProperty.call(target, key)) {
        clone[key] = deepClone(target[key])
      }
    }
    return clone
  }
  return target
}
